/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.decorate;

/**
 * 装饰模式是为了增加新的功能
 * @author xiay
 * @since 2020/12/12 9:29 下午
 */
public class DecorateClient {

    public static void main(String[] args) {
        ICar baseCar = new BaseCar();

        ExtendCar extendCar = new AirConditionCar(new SoundCar(baseCar));
        extendCar.run();
    }
}
